﻿@model ViewModel.AdmLogOnModel
@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Blank_Html.cshtml";
}
@section Head{
    <script type="text/javascript" src="@Url.Content("~/Content/boot/js/jquery-1.8.3.min.js")"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"> </script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"> </script>
    <style type="text/css">
        * html {
            background-color: #f5f5f5;
        }

        body {
            padding-top: 40px;
            padding-bottom: 40px;
            background-color: #f5f5f5;
        }

        .form-signin {
            max-width: 300px;
            _width: 300px;
            margin: 40px auto 80px;
            background-color: #fff;
        }

            .form-signin .form-signin-heading, .form-signin .checkbox {
                margin-bottom: 10px;
            }

            .form-signin input[type="text"], .form-signin input[type="password"] {
                font-size: 16px;
                height: auto;
                margin-bottom: 15px;
                padding: 7px 9px;
            }
    </style>
}
    @using (Html.BeginForm("Login", "Home", FormMethod.Post, new { @class = "form-signin" }))
    {
        @Html.TextBoxFor(m => m.UserName, new { @class = "input-block-level", placeholder = "用户名/邮箱" })@Html.ValidationMessageFor(m => m.UserName)
        @Html.TextBoxFor(m => m.Password, new { @class = "input-block-level", placeholder = "密码" })@Html.ValidationMessageFor(m => m.Password)
        <label class="checkbox">
            @Html.CheckBoxFor(m => m.RememberMe)
            @Html.LabelFor(m => m.RememberMe)
        </label>
        
        @Html.ValidationSummary(true, "登录失败.", new { @class = "red" })
        <button class="btn btn-large btn-primary" type="submit">
            登入</button>
    }
